From 34085147e91637ff4ea68e301b44eac4f13932ec Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 7 Jun 2011 19:54:40 -0400 Subject: [PATCH] GtkFileChooserButton: derive from GtkBox, not GtkHBox --- gtk/gtkfilechooserbutton.c | 4 +++- gtk/gtkfilechooserbutton.h | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index d785bd151c..81b720d5b4 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -52,6 +52,8 @@ #include "gtkfilechooserbutton.h" +#include "gtkorientable.h" + #include "gtktypebuiltins.h" #include "gtkprivate.h" @@ -342,7 +344,7 @@ static guint file_chooser_button_signals[LAST_SIGNAL] = { 0 }; * GType Declaration * * ******************* */ -G_DEFINE_TYPE_WITH_CODE (GtkFileChooserButton, gtk_file_chooser_button, GTK_TYPE_HBOX, { \ +G_DEFINE_TYPE_WITH_CODE (GtkFileChooserButton, gtk_file_chooser_button, GTK_TYPE_BOX, { \ G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER, gtk_file_chooser_button_file_chooser_iface_init) \ }) diff --git a/gtk/gtkfilechooserbutton.h b/gtk/gtkfilechooserbutton.h index e469ef7c98..fb0cee19dc 100644 --- a/gtk/gtkfilechooserbutton.h +++ b/gtk/gtkfilechooserbutton.h @@ -25,7 +25,7 @@ #ifndef __GTK_FILE_CHOOSER_BUTTON_H__ #define __GTK_FILE_CHOOSER_BUTTON_H__ -#include +#include #include G_BEGIN_DECLS @@ -43,7 +43,7 @@ typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass; struct _GtkFileChooserButton { - GtkHBox parent; + GtkBox parent; /*< private >*/ GtkFileChooserButtonPrivate *priv; @@ -52,7 +52,7 @@ struct _GtkFileChooserButton struct _GtkFileChooserButtonClass { /*< private >*/ - GtkHBoxClass parent_class; + GtkBoxClass parent_class; void (* file_set) (GtkFileChooserButton *fc); -- 2.30.2